package pojo.qo;

import pojo.entity.OrderGood;

import java.util.List;

public class AddOrder {
    Long userId;                             //用户ID
    private Long orderNumber;               //订单编号
    private Double money;                   //订单金额
    private int address;                    //收货地址id
    private List<OrderGood> orderGoods;     //商品集合

    public AddOrder() {
    }

    public AddOrder(Long userId, Long orderNumber, Double money, int address, List<OrderGood> orderGoods) {
        this.userId = userId;
        this.orderNumber = orderNumber;
        this.money = money;
        this.address = address;
        this.orderGoods = orderGoods;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Long orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public int getAddress() {
        return address;
    }

    public void setAddress(int address) {
        this.address = address;
    }

    public List<OrderGood> getOrderGoods() {
        return orderGoods;
    }

    public void setOrderGoods(List<OrderGood> orderGoods) {
        this.orderGoods = orderGoods;
    }

    @Override
    public String toString() {
        return "AddOrder{" +
                "userId=" + userId +
                ", orderNumber=" + orderNumber +
                ", money=" + money +
                ", address=" + address +
                ", orderGoods=" + orderGoods +
                '}';
    }
}
